#ifndef ____SSBASEL__SSBASE__BASE_STR__H__
#define ____SSBASEL__SSBASE__BASE_STR__H__

#include "base_stl.h"

_SSL_BEGIN
_SSBASEL_BEGIN

SSBASE_API tstrings str_split(const tstring &text, tchar c);
SSBASE_API void str_triml(tstring &s, const tchar *ts);
SSBASE_API void str_trimr(tstring &s, const tchar *ts);
SSBASE_API void str_trim(tstring &s, const tchar *ts);
SSBASE_API int str_replace(tstring &s, const tstring &pattern, const tstring &new_pattern);
SSBASE_API void str_upper(tstring &s);
SSBASE_API void str_lower(tstring &s);
//
SSBASE_API std::string str_chinese2firstpinyin_a(const std::string &str);
SSBASE_API std::string str_chinese2pinyin_a(const std::string &str);
SSBASE_API bool str_includechinese_a(const std::string &str);

//
SSBASE_API int tstring_to_int(const tstring &val);
SSBASE_API tstring int_to_tstring(int v, int radix = 10);

//
_SSBASEL_END
_SSL_END

#endif
